package com.AAA.entity;

import java.io.Serializable;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Table(name = "t_menu")
@Data
//@ApiModel(value = "TMenu)", description = "")
public class TMenu implements Serializable {
    private static final long serialVersionUID = 160704289421475920L;
    @Id
    @Column(name = "id")
    private Integer id;
    @Column(name = "mname")
    //@ApiModelProperty(value = "${column.comment}")
    private String mname;
    
    @Column(name = "pid")
    //@ApiModelProperty(value = "涓€绾ц彍鍗?")
    private Integer pid;
    
    @Column(name = "url")
    //@ApiModelProperty(value = "鑿滃崟鎸囧畾鐨勮矾寰?")
    private String url;
    
    @Column(name = "icon")
    //@ApiModelProperty(value = "图标")
    private String icon;

    //一个父菜单下面有多个子菜单 t_menu
    @Transient  //通用mapper内进行查重时，该属性不参与查询
    private List<TMenu> sonMenus=new ArrayList<>();
}


